package com.huarui.ip.service;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.service.BaseService;

import com.huarui.ip.dao.IIpAddressDao;

public class IpAddressService extends BaseService{
	
	private IIpAddressDao getDao() {
		return (IIpAddressDao) super.dao;
	}
	
	/**
	 * 后台查询
	 * @param paramsMap
	 * @return
	 */
	public Map<String, Object> getIpAddressListByComplex(Map<String, Object> paramsMap) {
		Integer totalProperty = this.getDao().getIpAddressListCountByComplex(paramsMap);
		List<Map<String, Object>> list = this.getDao().getIpAddressListByComplex(paramsMap);
		paramsMap.clear();
		paramsMap.put("totalProperty", totalProperty);
		paramsMap.put("root", list);
		return paramsMap;
	}
}
